home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tree / Makefile.kit < prev    next >
Makefile  |  1993-09-01  |  2KB  |  87 lines

  1. # Makefile for tree, June, 1990.  Greg Lee
  2.  
  3. #LEX = 
  4. #LEXLIB = -ll
  5. # or if you don't have flex, use:
  6. LEX = lex
  7. LEXLIB = -ll
  8.  
  9. INSTALL=install
  10.  
  11. # Use flag -u or -t to make .tex files:
  12. UT = -u
  13.  
  14. # Keyword required by PS driver at the begining of TeX
  15. # \specials to incorporate line of text directly in PS output
  16. # (see explanation at the beginning of tex.c).  Default is
  17. # no keyword.
  18. #DEFS = -DSKEY=\"ps::\"
  19. #DEFS = -DSKEY=\"ps-string \"
  20. #DEFS = -DSKEY=\"ps-string=\"
  21. #DEFS = -DSKEY=\"pstext=\"
  22. DEFS =
  23.  
  24. install: all
  25.     $(INSTALL) -o $(USER) -g $(GROUP) tree ${BIN}
  26.     $(INSTALL) -o $(USER) -g $(GROUP) tpar ${BIN}
  27.     $(INSTALL) -o $(USER) -g $(GROUP) unpar ${BIN}
  28.     $(INSTALL) -o $(USER) -g $(GROUP) tree.1 $(MAN)/man1
  29.  
  30. all: tree tpar unpar
  31.  
  32. tree:    tree.l tex.c
  33.     $(LEX) tree.l
  34.     cc $(DEFS) -O -s -o tree lex.yy.c $(LEXLIB)
  35.     rm lex.yy.c
  36.  
  37. tpar: tpar.l
  38.     $(LEX) tpar.l
  39.     cc -O -s -o tpar lex.yy.c $(LEXLIB)
  40.     rm lex.yy.c
  41.  
  42. unpar: unpar.l
  43.     $(LEX) unpar.l
  44.     cc -O -s -o unpar lex.yy.c $(LEXLIB)
  45.     rm lex.yy.c
  46.  
  47. mdoc:    mdoc.l
  48.     $(LEX) mdoc.l
  49.     cc -O -s -o mdoc lex.yy.c $(LEXLIB)
  50.     @rm lex.yy.c
  51.  
  52. use.tre: use.raw mdoc
  53.     rm -f use.tre
  54.     mdoc <use.raw >use.tre
  55.  
  56. tex:    sample.tex texsample.tex tpsample.tex use.tex
  57.  
  58. sample.tex: sample tree
  59.     rm -f sample.tex
  60.     @echo '--- Expect a warning about an ill-formed \tree command ---'
  61.     tree $(UT) sample >sample.tex
  62. tpsample.tex: tpsample tree tpar
  63.     rm -f tpsample.tex
  64.     tpar -t tpsample |tree $(UT) >tpsample.tex
  65. texsample.tex: texsample tree
  66.     rm -f texsample.tex
  67.     tree $(UT) texsample >texsample.tex
  68. use.tex: use.tre tree
  69.     rm -f use.tex
  70.     @echo '--- Expect two warnings about discarded text ---'
  71.     tree $(UT) use.tre >use.tex
  72.  
  73. shar:
  74.     makekit -m
  75.     mv Part01 tree.shar1
  76.     mv Part02 tree.shar2
  77.     mv Part03 tree.shar3
  78.  
  79. DIST = MANIFEST Makefile README mdoc.l sample tex.c \
  80.     texsample tpar.l tpsample tree.1 tree.l unpar.l use.raw
  81.  
  82. tar:    $(DIST)
  83.     tar cf tree.tar $(DIST)
  84.  
  85. clean:
  86.     rm -f *.aux *.dvi *.lof *.log *.toc *.blg *.bbl *.ilg *.ind *.idx lex.yy.c tree tpar unpar
  87.